<head th:include="/header:: header"></head>
<div class="row">
	<div class="col-lg-12">
		<section class="panel">
			<div class="panel-body">
				<form role="form" action=" " method="post" id="form">
					<div class="row">
						<div class="col-lg-8 col-sm-8 control-label">
							<div class="well well-sm">
								组件关系名称 : <span th:text="${groupRelationship.name}"></span>
							</div>
						</div>
						<div class="col-lg-4 col-sm-4 control-label">
							<div class="well well-sm">
								需求输入日期: <span
									th:if="${groupRelationship.requirementDate  !=  null}"><span
									th:text="${#dates.format(groupRelationship.requirementDate,'yyyy-MM-dd')} "></span>
								</span> <span
									th:unless="${groupRelationship.requirementDate  !=  null}"></span>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-8 col-sm-8 control-label form-group ">
							<div class="well well-sm">
								组件单编号:<span th:text="${groupRelationship.groupRelationshipID}"></span>
							</div>
						</div>
						<div class="col-lg-4 col-sm-4 control-label">
							<div class="well well-sm">
								确认日期: <span th:if="${groupRelationship.confirmedDate  !=  null}"><span
									th:text="${#dates.format(groupRelationship.confirmedDate,'yyyy-MM-dd')} "></span>
								</span> <span th:unless="${groupRelationship.confirmedDate  !=  null}"></span>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-8 col-sm-8 control-label">
							<div class="well well-sm">
								备注: <span th:text="${groupRelationship.note} "></span>
							</div>
						</div>
						<div class="col-lg-4 col-sm-4 control-label">
							<div class="well well-sm">
								处理人员： <span
									th:text="${groupRelationship.confirmedUser.fullName} "></span>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-8 col-sm-8 control-label">
							<div class="well well-sm">
								<span th:if="${groupRelationship.fileName  !=  null}"> <label
									for="note">查看已上传文件</label> <a href="javascript:download();"><span
										th:text="${groupRelationship.fileName}"></span> </a>
								</span><input type="hidden" th:value="${groupRelationship.fileName}"
									id="fileName" /><input type="hidden"
									th:value="${groupRelationship.fileStr}" id="fileStr" />
							</div>
						</div>
						<div class="col-lg-4 col-sm-4 control-label">
							<div class="form-group">
								是否需要修改<select name="edit"
									class="js-example-basic-single
								form-control"
									id="isEdit">
									<option th:selected="${groupRelationship.edit  eq false}"
										value="0">否</option>
									<option th:selected="${groupRelationship.edit  eq true}"
										value="1">是</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-12 col-sm-12 control-label">
							<div class="form-group">
								<label for="editPoint">修改点</label>
								<textarea id="editPoint" name="editPoint" class="form-control"
									rows="3" />
							</div>
						</div>
					</div>
					<div class="col-lg-12  pull-right">
						<input type="hidden" name="id" id="id"
							th:value="${groupRelationship.id}" />
						<button type="button" class="btn btn-primary" id="submit">提交</button>
					</div>
				</form>
			</div>
		</section>
	</div>
</div>
<script th:src="@{../modular/pms/mysql/groupRelationship/deal.js}"></script>

<script th:inline="javascript">
    $("#editPoint").val([[${groupRelationship.editPoint}]]);
    var requirementDate =  [[${groupRelationship.requirementDate}]] == null  ? "":[[${groupRelationship.requirementDate}]].substring(0,10);;
    var confirmedDate =  [[${groupRelationship.confirmedDate}]] == null  ? "":[[${groupRelationship.confirmedDate}]].substring(0,10); 
    $("#requirementDate").val(requirementDate);
    $("#confirmedDate").val(confirmedDate);
</script>
<div th:include="/footer:: footer"></div>
